<?php
if (!class_exists('Plugin')) {
	die('Hacking attemp!');
}

class PluginYii extends Plugin {
	
	protected $aDelegates = array(
		'module' => array(
		),
	);
	protected $aInherits = array(
		'module'	=> array(
			'ModuleViewer'	=> 'PluginYii_ModuleYiiviewer',
		),
		'entity' => array (
		  'ModuleBlog_EntityBlog' => 'PluginYii_ModuleYii_EntityBlog',
		  'ModuleBlog_EntityBlogUser' => 'PluginYii_ModuleYii_EntityBlogUser',
		  'ModuleUser_EntityCity' => 'PluginYii_ModuleYii_EntityCity',
		  'ModuleComment_EntityComment' => 'PluginYii_ModuleYii_EntityComment',
		  'ModuleComment_EntityCommentOnline' => 'PluginYii_ModuleYii_EntityCommentOnline',
		  'ModuleUser_EntityCountry' => 'PluginYii_ModuleYii_EntityCountry',
		  'ModuleFavourite_EntityFavourite' => 'PluginYii_ModuleYii_EntityFavourite',
		  'ModuleUser_EntityFriend' => 'PluginYii_ModuleYii_EntityFriend',
		  'ModuleUser_EntityInvite' => 'PluginYii_ModuleYii_EntityInvite',
		  'ModuleNotify_EntityTask' => 'PluginYii_ModuleYii_EntityNotifyTask',
		  'PluginPage_ModulePage_EntityPage' => 'PluginYii_ModuleYii_EntityPage',
		  'ModuleUser_EntityReminder' => 'PluginYii_ModuleYii_EntityReminder',
		  'ModuleUser_EntitySession' => 'PluginYii_ModuleYii_EntitySession',
		  'ModuleTalk_EntityTalk' => 'PluginYii_ModuleYii_EntityTalk',
		  'ModuleTalk_EntityTalkUser' => 'PluginYii_ModuleYii_EntityTalkUser',
		  'ModuleTopic_EntityTopic' => 'PluginYii_ModuleYii_EntityTopic',
		  'ModuleTopic_EntityTopicRead' => 'PluginYii_ModuleYii_EntityTopicRead',
		  'ModuleTopic_EntityTopicTag' => 'PluginYii_ModuleYii_EntityTopicTag',
		  'ModuleUser_EntityUser' => 'PluginYii_ModuleYii_EntityUser',
		  'ModuleVote_EntityVote' => 'PluginYii_ModuleYii_EntityVote',
		  'PluginXtext_ModuleFile_EntityFile' => 'PluginYii_ModuleYii_EntityXtextFile',
		),
		
	);
	
	public function Activate() {
		return
			version_compare(PHP_VERSION,"5.1.0",">=") == 1
			&& class_exists('Reflection',false)
			&& extension_loaded("pcre")
			&& extension_loaded("SPL")
			&& extension_loaded('pdo')
			&& extension_loaded('pdo_mysql')
		;
	}
	
	public function Init(){
	}
	
}
?>